﻿<Window x:Class="PaginatedObervableCollection.TestWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     
    xmlns:local="clr-namespace:PaginatedObervableCollection"
    Title="Paginated Collection" Height="360" Width="500" 
    WindowStyle="ToolWindow" Background="#FF878787" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	<Window.Resources>


        <DataTemplate x:Key="DataTemplate1">
			<Grid >
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="0.69*"/>
					<ColumnDefinition Width="0.31*"/>
				</Grid.ColumnDefinitions>
				<Grid.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF202020" Offset="0"/>
						<GradientStop Color="#FF5B5B5B" Offset="0.031"/>
						<GradientStop Color="#FF343434" Offset="1"/>
					</LinearGradientBrush>
				</Grid.Background>
				<TextBlock Text="{Binding Path=Name}" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,3,0,3" Foreground="#FFCCCCCC"/>
				<TextBlock Grid.Column="1" Text="{Binding Path=Value}" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,3,0,3" Foreground="#FFCCCCCC"/>
			</Grid>
		</DataTemplate>

	</Window.Resources>
    <Grid x:Name="rootVisual">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="0.15*"/>
    		<RowDefinition Height="0.7*"/>
    		<RowDefinition Height="0.15*"/>
    	</Grid.RowDefinitions>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.138*"/>
    		<ColumnDefinition Width="0.726*"/>
    		<ColumnDefinition Width="0.136*"/>
    	</Grid.ColumnDefinitions>
        <ItemsControl x:Name="lstBox" ItemsSource="{Binding}"  ItemTemplate="{DynamicResource DataTemplate1}" Background="#FFC2C2C2" BorderBrush="#FF000000" BorderThickness="1,1,1,1" Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="1" Grid.RowSpan="1" VerticalAlignment="Stretch" />
    	<Button x:Name="btnNext"  VerticalAlignment="Top" Height="23" Content="Next" HorizontalAlignment="Right" Margin="0,6,0,0" Width="40" Grid.Column="1" Grid.Row="2"/>
        <Button x:Name="btnBack" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="40" Height="23" Content="Back" Margin="0,6,0,0" Grid.Column="1" Grid.Row="2"/>
        <Slider Orientation="Horizontal" x:Name="slider1" Value="3" Maximum="15" Minimum="1" HorizontalAlignment="Right" VerticalAlignment="Center" Width="180" Grid.Column="1" Grid.ColumnSpan="1" />
        <TextBlock Text="{Binding Path=CurrentPage}" x:Name="textBlock1" HorizontalAlignment="Center" VerticalAlignment="Stretch" Height="21" Grid.Column="1" Grid.Row="2" />
        
    	<TextBlock HorizontalAlignment="Left" Margin="38,16.905,0,13.525" Width="Auto" Height="Auto" Grid.Column="1" FontSize="14" Text="Page Size" TextWrapping="Wrap" d:LayoutOverrides="Height"/>
        
      </Grid>
</Window>
